package dryven.model.binding.fieldset;

import dryven.model.validation.ValidationFieldDescription;

public class FieldValidatorDescription implements ValidationFieldDescription {

	private Field _field;
	
	public FieldValidatorDescription(Field field) {
		super();
		_field = field;
	}

	@Override
	public int getMaxLength() {
		return _field.getMaxLength();
	}

	@Override
	public String getName() {
		return _field.getUniqueName();
	}

	@Override
	public Class<?> getValueType() {
		return _field.getValueType();
	}

	@Override
	public boolean isRequired() {
		return _field.isRequired();
	}

	public Field getField() {
		return _field;
	}
}
